package study.designpattern.observer;


public class MainOberver {
    public static void main(String[] args) {
        PaperPublisher pp = new PaperPublisher();
        
        Subscriber s1 = new Subscriber("lee");
        Subscriber s2 = new Subscriber("lee2");
        Subscriber s3 = new Subscriber("lee3");
        
        pp.regist(s1);
        pp.regist(s2);
        pp.notifySubscribers();
        
        System.out.println();
        
        pp.regist(s3);
        pp.unSubscribe(s1);
        pp.notifySubscribers();
    }
}
